import request from '@/utils/request'

// 查询房屋记录列表
export function listHouseHistory(query) {
  return request({
    url: '/community/houseHistory/list',
    method: 'get',
    params: query
  })
}

// 查询房屋记录详细
export function getHouseHistory(id) {
  return request({
    url: '/community/houseHistory/' + id,
    method: 'get'
  })
}

// 新增房屋记录
export function addHouseHistory(data) {
  return request({
    url: '/community/houseHistory',
    method: 'post',
    data: data
  })
}

// 修改房屋记录
export function updateHouseHistory(data) {
  return request({
    url: '/community/houseHistory',
    method: 'put',
    data: data
  })
}

// 删除房屋记录
export function delHouseHistory(id) {
  return request({
    url: '/community/houseHistory/' + id,
    method: 'delete'
  })
}
